package com.wwdx.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liguoliang
 */
@Table(name = "wwdx_jdorder")
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WwdxJdorderModel implements Serializable{

    /**
     * 订单号
     */
    @Id
    private String id;
    /**
     * 京东订单号
     */
    private String jdOrderNo;
    /**
     * 清算时间
     */
    private String finTime;
    /**
     * 购买数量（直充时只能为1）
     */
    private Integer quantity;
    /**
     * 商品编号
     */
    private String wareNo;
    /**
     * 成本价
     */
    private Long costPrice;
    /**
     * 加密前的卡号
     */
    private String card;
    /**
     * 加密后卡号信息
     */
    private String cardInfo;
    @Column(name = "gmt_created",updatable = false)
    private Date gmtCreated;
    @Transient
    private String productName;
    @Transient
    private BigDecimal price;
}